#PBS -l nodes=1:ppn=2
# Join the STDOUT and STDERR streams into STDOUT
#PBS -j oe
# Write STDOUT to output.txt 
#PBS -o output.txt

# Initialize and clean Environment Modules
. /usr/local/packages/Modules/current/init/bash
module purge

# Load Intel compilers and OpenMPI
# Note that it is NECESSARY to load non-GCC compilers here, otherwise your 
# program will fail to run due to missing shared libraries
#module load icc/9.1.044-64bit mpi-pbs/openmpi-64bit
module load mpi/openmpi-1.4.1_intel-11.1-64bit

# Change directories to wherever we where when qsub was run
# Jobs start out in your home directory unless told otherwise with the -d attribute
cd ~/project2/trunk/

# Run our hello world program
# OpenMPI does not require ring boot or halt
mpiexec ./smalltest


